<?php
class LanguageController extends AdminBaseController {
	public function lists(){
		return HttpServerManager::getLanguageServer()->paging();
	}
	public function add(){
		if (!empty($_GET['id'])){
			$data = HttpDaoManager::getLanguageDao()->get($_GET['id']);
		}
		return $data;
	}
	public function subAdd(){
		HttpDaoManager::getLanguageDao()->add($_POST);
		ClassManager::getToos()->msgbox('添加成功');
	}
	public function subUpdate(){
		HttpDaoManager::getLanguageDao()->update($_POST,$_POST['id']);
		ClassManager::getToos()->msgbox('修改成功','Language_lists.html');
	}
	public function delete(){
		HttpServerManager::getLanguageServer()->deleteBatchByid($_GET['id']);
		ClassManager::getToos()->msgbox("删除成功");
	}
}
?>